<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="vue.js"></script>
</head>
<body>

    <!--
        通过v-bind:指令, 把Vue对象中的设置的参数, 绑定到html标签的属性上
    -->

    <div id="root">

        <div title="这是一个文本">
            div
        </div>

        <hr>
        <div v-bind:title="text1">
            div
        </div>

        <hr>
        <a v-bind:href="url">百度</a>

        <hr>
        <img v-bind:src="url2">

    </div>
    <script>
        new Vue({
            el: "#root",
            data: {
                text1: "这是一个文本",
                url: "https://www.baidu.com",
                url2: "../dom/作业/1111.png"
            }
        })
    </script>

</body>
</html>
